package com.dongxing.concyrrency.chapter2;

/**
 * @author XavierDong
 **/
public class TicketWindowRunnable implements Runnable {

    private int index = 1;

    private final static int MAX = 50;

    @Override
    public void run() {
        while (index <= MAX) {
            System.out.println(Thread.currentThread() + " 的号码是： " + (index++));
        }

    }
}
